import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/dashboard/apiDiscovery/` + url, ...arg)

/**
 * API接口发现
 *
 * @author zmdp
 * @date 2025-01-21 22:33:20
 */
export default {
	// 获取可用的API接口列表
	getApiList(data) {
		return request('list', data, 'get')
	},
	// 搜索API接口
	searchApi(data) {
		return request('search', data, 'get')
	},
	// 获取API接口详情
	getApiDetail(data) {
		return request('detail', data, 'get')
	}
}
